"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
class Config {
    static preload(configPath) {
        return new Promise((resolve, reject) => {
            fs.readFile(configPath, (err, data) => {
                if (err)
                    throw err;
                let obj = JSON.parse(data.toString());
                this.initConfig(obj);
                resolve();
            });
        });
    }
    static initConfig(obj) {
        Config.Web_Client_Port = obj["Web_Client_Port"];
        Config.WebPortList = obj["WebPortList"];
        Config.AndroidUrl = obj["AndroidUrl"];
        Config.IOSUrl = obj["IOSUrl"];
        Config.ipaUrl = obj["ipaUrl"];
    }
}
exports.Config = Config;
Config.WebPortList = [];
Config.AndroidUrl = "";
Config.IOSUrl = "";
Config.ipaUrl = "";
